package com.probox.common.entity.mapper.order;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.probox.common.entity.domain.order.OrderRecharge;
import com.probox.common.entity.vo.customer.CustomerRechargeVo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 充值订单Mapper接口
 *
 * @author hds
 * @date 2021-06-07
 */
public interface OrderRechargeMapper extends BaseMapper<OrderRecharge> {

    /**
     * 查询客户的消费记录
     *
     * @param customerUid
     * @return
     */
    List<CustomerRechargeVo> listConsumptionByUid(@Param("customerUid") Long customerUid, @Param("time") String time);

    /**
     * 余额变动
     *
     * @param customerUid
     * @return
     */
    List<CustomerRechargeVo> listBalanceChange(@Param("customerUid") Long customerUid);

    List<OrderRecharge> listOrderRechargeByCustomerId(@Param("customerUid") Long customerUid);
}
